
public class Rectangle {
	public double length;
	public double width;
	public Rectangle(){
		
	}
	public Rectangle(double Length,double Width){
		this.length = Length;
		this.width = Width;
	}
	double perimeter(){
		return 2*(length+width);
	}
	
	double area(){
		return length*width;
	}
	void print(){
		System.out.println("所计算的矩形的长:"+length+"\n宽:"+width+"\n周长:"+perimeter()+"\n面积:"+area());
	}
}